#include <iostream>
#include <string>
using namespace std;

int main() 
{
    int count1 = 0;
    int count2 = 0;
    int count3 = 0;
    string s;
    cin >> s;
    for (auto e : s)
    {
        if (e == 'R')
        {
            count1++;
        }
        if (e == 'G')
        {
            count2++;
        }
        if (e == 'B')
        {
            count3++;
        }
    }
    cout << "(" << count1 << "," << count2 << "," << count3 << ")";
}
